/**
 * 
 */
package org.jenkon.validator;

import java.io.Serializable;

/**
 * validator interface for validate a delegating object.
 * 
 * @author Jens Konopka
 * 
 * @param <T> typ of object to validate
 */
public interface Validator<T> extends Serializable {

	/**
	 * @param value the value to validate
	 */
	void validate(final T value);

	/**
	 * @param value the value to validate
	 * @return true is valid or false if other
	 */
	boolean isValid(final T value);

}
